package com.practice.mapper;
import com.practice.entity.Department;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
/**
 * @program: tenghw-practice-demo
 * @author: tenghw
 * @create: 2024-01-19 01:30
 * @Version 1.0
 * @description:
 **/
@Mapper
public interface DepartmentMapper {
    /**
     * 查询所有部门信息
     * @return
     */
    List<Department> findAll();
    /**
     * 查询某部门和其所有子部门(包括子部门的子部门...)
     * @return
     */
    List<Department> getDepartmentById(Integer id);

}
